<template>
<div>窗口是否被激活：{{ focused }}</div>
</template>
<script setup lang="ts">
import { useWindowFocus } from "@vueuse/core";

defineOptions({
  name: "UseWindowFocus"
})
const focused = useWindowFocus()
</script>
